var statusBar = new Ext.ux.StatusBar({
    text: "Ready",
    id: 'basic-statusbar',    
    iconCls: "x-status-valid"
});

eventManager.registerStatusMessageListener(function(message) {
    var level = message.level || "info";
    var text = message.text || message;
    var icon = "x-status-valid";
    if (level === "error") {
        icon = "x-status-error"
    }
    statusBar.setStatus({
        text: text,
        iconCls: icon,
        clear: {
            wait: 5000,
            anim: false,
            useDefaults: false
        }
    });
});
